package com.gpframework.module.common.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.common.mapper.GpCommonStartPageMapper;
import com.gpframework.module.common.domain.GpCommonStartPage;
import com.gpframework.module.common.domain.vo.GpCommonStartPageVo;
import com.gpframework.module.common.service.IGpCommonStartPageService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
/**
 * @ClassName GpCommonStartPage
 * @Author gpframework
 * @Date 2021-12-09
 * @Version 1.0.0
 * @Description 启动页Service业务层处理
 */
@Service
public class GpCommonStartPageServiceImpl extends ServiceImpl<GpCommonStartPageMapper, GpCommonStartPage> implements IGpCommonStartPageService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2021-12-09
     * @Param [lqw]
     * @Return List<GpCommonStartPageVo>
     */
    @Override
    public List<GpCommonStartPageVo> listVo(QueryWrapper<GpCommonStartPage> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2021-12-09
     * @Param [id]
     * @Return GpCommonStartPageVo
     */
    @Override
    public GpCommonStartPageVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }
}
